<!doctype html>
<html dir="ltr" lang="en">
  <head data-tmpl="tmpl-dir">
    <meta charset="utf-8">
    <title>{{title}}</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <meta http-equiv="X-UA-Compatible" content="IE=Edge">
    <style>
      * {
        box-sizing: border-box;
      }
      html {
        color-scheme: light dark;
      }
      body {
        padding: 40px 140px;
        margin: 0;
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
        font-size: 14px;
        background: #f9f8f8;
      }
      h1 {
        margin-bottom: 15px;
        font-size: 18px;
        color: #343434;
      }
      h1 span {
        padding: 0 6px;
        font-weight: normal;
        color: #9e9b9b;
      }
      a {
        color: #555;
        text-decoration: none;
      }
      a:hover {
        color: #303030;
      }
      ul {
        margin: 0;
        padding: 0;
      }
      li {
        list-style: none;
        margin: 0;
        padding: 0;
      }
      li a {
        display: flex;
        align-items: center;
        gap: 6px;
        margin: 0;
        padding: 6px 12px;
        min-width: 50%;
        border-radius: 4px;
        overflow: hidden;
        white-space: nowrap;
      }
      li a:focus,
      li a:hover {
        color: #555;
        background: rgba(221, 235, 255, 0.65);
      }
      .icon {
        display: inline-block;
        width: 14px;
        min-height: 14px;
        opacity: 0.6;
        mask-repeat: no-repeat;
        -webkit-mask-repeat: no-repeat;
      }
      .directory .icon {
        mask-image: url();
        -webkit-mask-image: url();
        background-position: 0px 2px;
        background-color: currentColor;
      }
      .file .icon {
        mask-image: url();
        -webkit-mask-image: url();
        background-position: 0px 2px;
        background-color: currentColor;
      }
      li a:hover .icon {
        opacity: 1;
      }

      @media (max-width: 768px) {
        body {
          font-size: 13px;
          line-height: 16px;
          padding: 0;
        }
        h1 {
          font-size: 2em;
          line-height: 1.5em;
          color: #fff;
          background: #000;
          padding: 15px 10px;
          margin: 0;
        }
        h1 a {
          color: #9e9e9e;
        }
        h1 a:hover {
          color: #eaeaea;
        }
        ul {
          border-top: 1px solid #cacaca;
        }
        li {
          display: block;
          border-bottom: 1px solid #cacaca;
          font-size: 2em;
          line-height: 1.2em;
        }
        li:nth-child(odd) {
          background: #e0e0e0;
        }
        li a {
          display: flex;
          border-radius: 0;
          padding: 15px 10px;
        }
        .icon {
          width: 24px;
          min-width: 24px;
          min-height: 24px;
        }
        .directory .icon {
          background-position: 0px 4px;
        }
      }

      @media (prefers-color-scheme: dark) { 
        body {
          background: #000;
        }
        h1 {
          color: #eaeaea;
        }
        a {
          color: #ccc;
        }
        a:hover {
          color: #eaeaea;
        }
        li a:focus,
        li a:hover {
          color: #ccc;
          background: #1c1c1c;
        }
      }

      @media (max-width: 768px) and (prefers-color-scheme: dark) {
        ul {
          border-top: 1px solid #333;
        }
        li {
          border-bottom: 1px solid #333;
        }
        li:nth-child(odd) {
          background: #333;
        }
      }
    </style>
    <link rel="shortcut icon" type="image/png" href="">
  </head>
  <body>
    <main>
      <h1>{{nav}}</h1>
      <ul>{{files}}
      </ul>
    </main>
  </body>
</html>
